<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:91:"/www/wwwroot/schoolnx.nxers.com/public/../application/admin/view/exam/questionsPreview.html";i:1582090026;s:66:"/www/wwwroot/schoolnx.nxers.com/application/admin/view/iframe.html";i:1583476352;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="/static/libs/layui/css/layui.css">
    <link rel="stylesheet" href="/static/default/css/base.css">
    <link rel="stylesheet" href="/static/default/css/fonts.css">
    
</head>
<body class="layui-layout-iframe">

<div class="layui-card no-shadow">
    <div class="layui-card-body pdb50">
        <?php if($data['questionsequence'] == '1'): ?>
        <blockquote class="layui-elem-quote layui-quote-nm"><?php echo $data['question']; ?></blockquote>
        <?php if(is_array($data['subQuestions']) || $data['subQuestions'] instanceof \think\Collection || $data['subQuestions'] instanceof \think\Paginator): if( count($data['subQuestions'])==0 ) : echo "$empty" ;else: foreach($data['subQuestions'] as $key=>$v): ?>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
              <?php echo $v['question']; ?>
            </div>
        </div>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
              <?php echo $v['questionselect']; ?>
            </div>
        </div>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12 layui-text">
             答案： <?php echo $v['questionanswer']; ?>
            </div>
        </div>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12 layui-text">
             解析： <?php echo $v['questiondescribe']; ?>
            </div>
        </div>
        <hr class="layui-bg-gray mt20">
        <?php endforeach; endif; else: echo "$empty" ;endif; if($NoBtn != '1'): ?>
        <a href="<?php echo url('admin/exam/addSubQuestions', ['questionparent' =>$data['id'],'questionchapterid'=>$data['questionchapterid']]); ?>" class="layui-btn  fr ajax-iframe" data-width="860px" data-height="540px">添加子题</a>
        <?php endif; else: ?>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                <?php echo $data['question']; ?>
            </div>
        </div>
        <?php if(!empty($data['questionselect'])): ?>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
                <?php echo $data['questionselect']; ?>
            </div>
        </div>
        <?php endif; ?>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12 layui-text">
                答案： <?php echo $data['questionanswer']; ?>
            </div>
        </div>
        <div class="layui-row  ml20 mt20">
            <div class="layui-col-xs12 layui-col-sm12 layui-col-md12 layui-bg-gray">
                解析： <?php echo $data['questiondescribe']; ?>
            </div>
        </div>
        <?php endif; ?>
    </div>
</div>


<script src="/static/libs/layui/layui.all.js"></script>
<script src="/static/libs/common/jquery.min.js"></script>
<script src="/static/libs/common/common.js"></script>
<script src="https://cdn.bootcss.com/stickyNavbar.js/1.3.5/jquery.stickyNavbar.min.js"></script>

</body>
</html>
